Skip to content

feat(ui): show a workflow's swarms under the phases that started them - #214

Merged
trvon merged 2 commits into
feat/orchestration-workflow-phase-linkfrom
feat/workflow-swarm-view
Nov 20, 2026
Merged

trvon merged 2 commits into
feat/orchestration-workflow-phase-linkfrom
feat/workflow-swarm-view

Conversation

@trvon

@trvon trvon commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Classification

Feature expectation: one view for a phased fan-out, in place of two unrelated controllers. Two commits: the view, and the routing guideline.

Contract

◆ #3 Ship migration
  ∑ 2/5 agents · 2k tok
  ✓ plan 2/2
  ▶ implement · try 1/3
    claimed 4m
    ◇ #5 0/3 · 1/2 in flight
    ● p
    ○ p
    ○ p
  ○ review
  ○ done
  → pass, retry
  • A swarm that recorded its phase is listed under that phase's row, and not again on its own.
  • A swarm still running after its phase was left stays under that phase.
  • A finished phase shows its latest swarm's done/total.
  • A ∑ line under the workflow title totals agents and reported tokens across its swarms; it is absent when the workflow has none.
  • Fallback to a standalone row when the workflow is gone, expired, not one of the two detailed workflows, or the phase row is outside the bounded state trail.
  • Guidance: the routing line no longer says orchestration is "not for ordered phases"; it says WorkflowCreate owns phases and rework and a phase's state runs its swarm here.

Invariants

  • Every in-progress swarm is shown exactly once, nested or standalone (new property).
  • Each detailed workflow still has exactly one current-state row, and that row still ends in its attempt.
  • A workflow with no linked swarm renders exactly as before (V4 control).
  • Presentation is read-only.
  • Tool copy stays inside the existing budget; no limit raised.

Evidence

Red on unchanged source: V1–V3 failed (no nesting, counts or totals); G2 failed on the old guideline wording.

Green: npm run lint, npm run typecheck, npm test (1624 passed), npm run build, npm run test:package, git diff --check, all by exit code.

Fuzz: FC_NUM_RUNS=10000 over the progress-panel, orchestration-status, orchestration and workflow property files: 20/20 passed in 113 s.

Limitations

  • Display only: no select, open, pause or stop on rows.
  • A phase can read "idle (unclaimed)" above busy workers once the 30-minute workflow claim lapses during a long swarm.
  • Nothing prevents a workflow transition while the phase's swarm is still running.
  • The status line still counts the workflow and its swarm separately.
  • Guidance is asserted as text; no live model run shows a model now builds a workflow with a swarm per phase.
  • Not checked in a live TUI session.

A phased run is a workflow whose states each run a swarm, and the panel
drew them as two unrelated controllers. A swarm that recorded its phase
is now listed under that phase's row and not a second time on its own.
A finished phase shows its latest swarm's done/total, and a totals line
under the workflow title sums agents and reported tokens.

A swarm whose workflow is gone, or whose phase row is off screen, is
listed on its own as before.
…m here

The routing guideline said orchestration is not for ordered phases,
which sent a phased fan-out to the workflow alone. It now says the
workflow owns the phases and a phase's state runs its swarm here.
@trvon
trvon added this pull request to stack #210 November 20, 2026 00:24
@trvon trvon changed the title feat/workflow swarm view feat(ui): show a workflow's swarms under the phases that started them Nov 20, 2026
@trvon
trvon marked this pull request as ready for review November 20, 2026 03:22
@trvon
trvon merged commit 9fb2a55 into master Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant